﻿@model IList<TreeBuilderSite.Models.Example>

@{
    ViewBag.Title = "Examples";
}

<h2>Screenshots</h2>
<p>
	Here you find some examples of trees built with TreeBuilder.<br/>
	<span style="font-size:smaller;">(Click on the image to view it full sized)</span>
</p>

@for (int i = 0; i < Model.Count; i++)
{
	<table>
	<tr>
		<td style="width: 40%;">
			<table>
				<tr>
					<td>
						<h3>Example @(i + 1)</h3>
					</td>
				</tr>
				<tr>
					<td>
						<p>
							@Model[i].Description
						</p>
					</td>
				</tr>
				<tr>
					<td>
						<a href="@Url.Action("Trees", "Home", new { id = Model[i].TreeFileUrl })" >Download in *.tree format</a>
					</td>
				</tr>
			</table>
		</td>
		<td>
			<table>
				<tr>
					<td>
						<a class="lightbox" href="@Url.Action("Images", "Home", new { id = Model[i].ImageUrl })" title="@Model[i].Description">
							<img src="@Url.Action("Images", "Home", new { id = Model[i].ImageUrl })" alt="example preview"  width="50%" height="50%" /></a>
					</td>
				</tr>
				<tr>
					<td style="font-size:smaller">Click the image to view it fullsized</td>
				</tr>
			</table>
		</td>
	</tr>
	
</table>

}